#include<iostream>
#include<unistd.h>
#include<stdio.h>
using std::cout;
using std::endl;
int main()
{
    pid_t id =fork();
    if(id==0)
    {
        cout<<"人脸追踪已开启"<<endl;
        sleep(1);
        execlp("sudo","sudo","python3","/home/bingbingbangpi/lb/robotServer/Track_Voice/FaceTrack.py",NULL);
        exit(1);
    }
    pid_t id2 = fork();
    if(id2==0)
    {
        cout<<"语音识别已开启"<<endl;
        sleep(1);
        execlp("sudo","sudo","python3","/home/bingbingbangpi/lb/robotServer/Track_Voice/voice_data.py",NULL);
        exit(1);
    }
}